package cqrtplm.service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.hustcad.plm.pdm.workflow.model.entity.WorkFlowContainerView;
import com.ty.basic.entity.IdentifierEntity;
import cqrtplm.dto.OAProjectJobDTO;
import cqrtplm.vo.TyJobVO;

import java.math.BigInteger;
import java.util.List;

public interface OaApiService {
    String getProjectIdByName(String field0003);

    List<TyJobVO> obtainTheProjectTaskId(String pjOid);

    void updateProjectJobTime(OAProjectJobDTO p);

    String selectProjectIdByName(String name);

    String updatePlanActivity(JSONArray jsonArray);

    void sendFormDataToOa(BigInteger workFlowContainerId);

    JSONObject writeBackOAFormData(JSONObject params);

    void sendOrderDataToOa(BigInteger bigInteger);
    /**
     * 获取流程中对象
     *
     * @param workFlowContainerId
     * @return
     */
    List<IdentifierEntity> getFlowObjListByWorkFlowContainer(BigInteger workFlowContainerId);
    List<IdentifierEntity> getFlowObjListByWorkFlowContainer(WorkFlowContainerView workFlowContainerView);

    void sendOrderChangePartDataToOa(BigInteger bigInteger);

    Boolean checkOAFlowState(BigInteger workFlowContainerId);
}
